<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core" 
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui">
    <ui:composition>
        <h:form>  
              
    <p:growl id="messages"/>  
  
    <h3>Ejemplo Menu</h3>  
    <p:slideMenu style="width:180px">  
        <p:submenu label="Elementos de Menu - Ajax " icon="ui-icon-refresh">  
            <p:menuitem value="Guardar"  update="messages" icon="ui-icon-disk" />  
            <p:menuitem value="Actualizar" update="messages" icon="ui-icon-arrowrefresh-1-w" />  
        </p:submenu>  
        <p:submenu label="Non-Ajax Menuitem" icon="ui-icon-newwin">  
            <p:menuitem value="Delete"  ajax="false" icon="ui-icon-close"/>  
        </p:submenu>  
        <p:separator />  
        <p:submenu label="Navigations" icon="ui-icon-extlink">  
            <p:submenu label="Prime Links">  
                <p:menuitem value="Prime" url="http://www.prime.com.tr" />  
                <p:menuitem value="PrimeFaces" url="http://www.primefaces.org" />  
            </p:submenu>             
        </p:submenu>  
    </p:slideMenu>  
    </h:form>
      
    </ui:composition>
</html>
